import random


winning_numbers = []
while len(winning_numbers) < 8:
    number = random.randint(1, 33)
    if number not in winning_numbers:
        winning_numbers.append(number)


user_input = input("请输入您的八位数字（每个数字之间用空格隔开）：")
user_numbers = [int(number) for number in user_input.split()]


correct_count = 0
for number in user_numbers:
    if number in winning_numbers:
        correct_count += 1

if correct_count == 8:
    print("恭喜您中了一等奖！中奖号码为：", winning_numbers)
elif correct_count == 7:
    print("恭喜您中了二等奖！中奖号码为：", winning_numbers)
elif correct_count == 6:
    print("恭喜您中了三等奖！中奖号码为：", winning_numbers)
elif correct_count >= 4:
    print("恭喜您中了四等奖！中奖号码为：", winning_numbers)
else:
    print("很遗憾，您没有中奖。中奖号码为：", winning_numbers)
